package com.ctgu.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 
 * @TableName t_blogs
 */
@TableName(value ="t_blogs")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BlogsEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "title")
    private String title;

    @TableField(value = "user_id")
    private Integer userId;

    @TableField(value = "likes")
    private Integer likes;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}